from game_logic import Wordle_UI
from words import Word_Manager
from key_display import Key_Dis
import tkinter as tk


# 方便修改大小
W_W = 1000
W_H = 800
W_P = 100

if __name__ == '__main__':
    # 初始化窗口
    root = tk.Tk()
    root.title("Welcome to 이다지 Game!!!")
    root.geometry(f"{W_W}x{W_H}+400+{W_P}")
    root.resizable(False,False)

    # 自己做的逻辑体系
    this_wm = Word_Manager()
    this_kd = Key_Dis(root)
    this_ui = Wordle_UI(root,this_wm,this_kd)

    #测试用
    # print(this_wm.word)

    # 别忘了mainloop
    root.mainloop()